package model

import (
	//"time"
	//"gorm.io/gorm"
)

type Product_Level int

const (
	HighLevel Product_Level = 1
	MiddleLevel Product_Level = 2
	NormalLevel Product_Level = 3
)

type Product_Category int

const (
	Commondity_Category Product_Category= 1
	Pet_Category        Product_Category= 2
	Kids_Category       Product_Category = 3
)

type Key struct {
	UUid  string  `gorm:"primaryKey"`
}

type Product struct {
	//ID           uint //id被自动的作为主键了
	//gorm.Model   //包含了create time updatetime以及ID主键字段等信息
	Key          Key    `gorm:"embedded"`
	Name         string
	Category     Product_Category
	Level        Product_Level
	Price        float64
	// CreatedAt    time.Time
	// UpdatedAt    time.Time
}
